(function webpackUniversalModuleDefinition(root, factory){
    //判断当前模块运行的环境 说明这是一个commonjs2环境
    if(typeof exports === 'object' && typeof module === 'object'){
        module.exports = factory();
    }else if(typeof define === 'function' && define.amd){//AMD环境
        define('calc',[],factory);
    }else if (typeof exports === 'object'){//commons环境
        exports['calc']= factory();
    }else{
        root.calc = factory();
    }
})(window,()=>{
    return {
        add(){},
        minis(){}
    }
});